<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			// var v;
			// console.log(v);
			// console.log(typeof(v));
			// v = 2.01;
			// console.log(v);
			// console.log(typeof(v));
			// v = 'js';
			// console.log(v);/
			// console.log(typeof(v));
			// v = true;
			// console.log(v); 
			// console.log(typeof(v));
			// v = null;
			// console.log(v); 
			// console.log(typeof(v));
			
			// var str1 = 'Hello Word';
			// console.log(str1.indexOf('W'));
			// console.log(str1.indexOf('Wo'));
			// console.log(str1.indexOf('lo', 10));
			
			
			//数组
			var str2 = 'How are you doing today';
			var array = str2.split(' ');
			console.log(array);
			console.log('1:2:3:4'.split(':'));
			
			var array1 = new Array(7);
			console.log(array1.length);
			var array2 = new Array(100, 'abc', true);
			console.log(array2.length);
		
		
			var array = new Array();
			array[0] = '2345';
			console.log(array);
			console.log(array.length);
			array[1] = false;
			console.log(array);
			console.log(array.length);
			
			var arr = new Array();
			arr.push('zhangs')
			console.log(arr);
			console.log(arr.length);
			arr.push(3)
			console.log(arr);
			console.log(arr.length);
			arr.push(true)
			console.log(arr);
			console.log(arr.length);
	
			
			console.log(arr.pop());
			console.log(arr);
			console.log(arr.pop());
			console.log(arr);
		</script>
	</body>
</html>